import { ref, computed } from "vue";
export default function (data = 100) {
  const counter = ref(data);
  const increment = () => {
    counter.value++;
  };
  const doubleCounter = computed(() => counter.value * 2);

  return {
    counter,
    increment,
    doubleCounter
  }
}